home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
MLOCAL.ARJ
/
MLOCAL.H
< prev
next >
Wrap
Text File
|
1991-03-16
|
1KB
|
33 lines
/*----------------------------------------------------------------------------
Multiple Local Heap Routines
mlocal.h
danq
10-28-90
----------------------------------------------------------------------------*/
#define MultLocalDiscard(hHeap,h) MultLocalReAlloc(hHeap, h, 0, LMEM_MOVEABLE)
#define MultLocalShrink(hHeap,h) LocalShrink(hHeap, h)
HANDLE FAR PASCAL MultLocalAlloc(HANDLE, WORD, WORD);
WORD FAR PASCAL MultLocalCompact(HANDLE, WORD);
HANDLE FAR PASCAL MultLocalFree(HANDLE, HANDLE);
HANDLE FAR PASCAL MultLocalHandle(HANDLE, LPSTR);
HANDLE FAR PASCAL MultLocalInit(WORD);
LPSTR FAR PASCAL MultLocalLock(HANDLE, HANDLE);
HANDLE FAR PASCAL MultLocalReAlloc(HANDLE, HANDLE, WORD, WORD);
WORD FAR PASCAL MultLocalSize(HANDLE, HANDLE);
BOOL FAR PASCAL MultLocalUnlock(HANDLE, HANDLE);
WORD FAR PASCAL MultLocalFlags(HANDLE, HANDLE);
HANDLE FAR PASCAL SetDStoHeap(HANDLE);
// Far Heap
typedef DWORD FHANDLE;
#define FarLocalLock(d) MultLocalLock(HIWORD(d),LOWORD(d))
#define FarLocalUnlock(d) MultLocalUnock(HIWORD(d),LOWORD(d))
FHANDLE FAR PASCAL FarLocalAlloc(WORD, WORD);
FHANDLE FAR PASCAL FarLocalFree(FHANDLE);